home *** CD-ROM | disk | FTP | other *** search
/ Merciful 1 / Merciful - Disc 1.iso / software / m / megalo_sound / megalosoundv1.39.dms / megalosoundv1.39.adf / HDInstall < prev    next >
Text File  |  1993-11-09  |  10KB  |  539 lines

  1. ; Megalosound Installer for Megalosound from Microdeal
  2.  
  3. (@default-dest "SYS:")
  4.  
  5. (transcript "Megalosound "@default-dest)
  6.  
  7. (set default-user @user-level)
  8.  
  9. (set MegaloVersion
  10. (getversion "Megalosound:Megalosound")
  11. )
  12. (Set MegaloVer
  13. (/ MegaloVersion 65536)
  14. )
  15. (set MegaloRev
  16. (- MegaloVersion (* Megalover 65536))
  17. )
  18.  
  19. (set techsupport2
  20. (cat techsupport2 "Please remember, Technical support is\n between 2-3P.M."
  21. " Mon-Fri\nIf you require technical support, please remember to have when you"
  22. " phone, your:-\nSerial Number\nSoftware version number\nMegalosound Manual\nMachine"
  23. " configuration (RAM,Processor,Hard disk etc)\n\n"
  24. " If you could also have a clear and concise description of the problem"
  25. " you are having, it will help us answer your queries as quickly as"
  26. " possible.\n\n"
  27. " Select Proceed to Quit to Workbench"
  28. )
  29. )
  30.  
  31. (set techsupport3
  32. (cat techsupport3 "Custom Installation Complete.\n\n To obtain your 30 days"
  33. " free technical support and notification of Megalosound updates,  please"
  34. " complete your registration card and return it to:-\nMicrodeal.\nThe"
  35. " Old School\nGreenfield\nBedford\nMK45 5DE\n"
  36. )
  37. )
  38.  
  39. ;alter user level
  40. (user 2)
  41.  
  42. ;hello everyone
  43. (message ("\n Welcome to the Hard disk installation utility for Megalosound Version %ld.%ld\n"MegaloVer MegaloRev)
  44.     "\n NOTE:\n To ensure proper installation, it is important that  "
  45.     " you boot from your hard drive before using the installation utility!"
  46.     "\n\nIf you require help at any stage of the installation,"
  47.     " just select the HELP buttons at the appropriate stages."
  48. )
  49.  
  50. ;set up backup
  51. (if (= original 0)
  52. (set backup
  53.     (askchoice
  54.     (prompt "\n Would you like to make a backup of your master disk?")
  55.     (help "Please always use a backup copy of the Megalosound master"
  56.         " disk to prevent damaging it. \n\nIf you have not made a backup of"
  57.     " your master disk, you now have the choice to do so."
  58.     )
  59.     (choices "Yes" "No")
  60.     (default 1 )
  61.     )
  62. )
  63. )
  64.  
  65. ;execute the backup script
  66. (if (= backup 0)
  67. (execute "Megalosound:diskbackup")
  68. )
  69.  
  70. ;ask to replace with backup
  71. (if (= backup 0)
  72.     (message "Backup Completed. \n\n Please remove the master disk"
  73.     " and replace it with the backup copy you have just made.\n\n"
  74.     " Select Proceed to continue Hard Disk Installation"
  75.     )
  76. )
  77.  
  78. ;reset user level
  79. (user default-user)
  80.  
  81. ;Set complex or even more complex!
  82.  
  83. (complete 0)
  84.  
  85. (set options
  86.     (askchoice
  87.         (Prompt "Select Installation?\n For Additional Information hit HELP!")
  88.         (help "\n Full Installation will copy"
  89.         " all the Megalosound files to your hard"
  90.         " disk including the Supersound, Multi-Mon, PSAM and Sample"
  91.         " files.\n\n"
  92.         " The Custom Installation will allow you"
  93.         " to install individual parts of the package,"
  94.         " as well as allowing you to choose the"
  95.         " installation paths for the files.\n\n"
  96.         " If your system is heavily customised from"
  97.         " the standard Amiga hard disk setup, it may be"
  98.         " advisable to choose the Custom Installation"
  99.         " setting for extra flexibility."
  100.         )
  101.         (choices "Full Installation" "Custom Installation")
  102.         (default 0 )
  103.     )
  104. )
  105.  
  106. (if (= options 0)
  107. (Complete 0)
  108. )
  109.  
  110. ;set megalosound location
  111. (if (= options 0)
  112.     (set Megalosound_Dest
  113.     (tackon
  114.         (askdir
  115.         (prompt "Select the location for the Megalosound Drawer.")
  116.         (help @askdir-help)
  117.             (default @default-dest)
  118.         )
  119.         "Megalosound"
  120.         )
  121.     )
  122. )
  123.  
  124. ;create Megalosound drawer
  125. (if (= options 0)
  126. (makedir (Megalosound_Dest))
  127. )
  128.  
  129. (set techsupport1
  130. (cat techsupport1 "Full Installation Complete. Megalosound can be found"
  131. " in ""\"" Megalosound_Dest "\""" \n\n To obtain your 30 days"
  132. " free technical support and notification of Megalosound updates,"
  133. "  please complete your registration card and return it to:-\nMicrodeal."
  134. "\nThe Old School\nGreenfield\nBedford\nMK45 5DE\n"
  135. )
  136. )
  137.  
  138. (if (= options 0)
  139. (Complete 20)
  140. )
  141.  
  142. ;set bonus location
  143. (if (= options 0)
  144. (set Bonus_Dest
  145.     (tackon
  146.     (askdir
  147.         (prompt "Select the location of the Bonus Drawer.")
  148.         (help @askdir-help)
  149.             (default Megalosound_Dest)
  150.     )
  151.         "Bonus"
  152.     )
  153. )
  154. )
  155.  
  156. ;set extras location
  157. (if (= options 0)
  158. (set Extras_Dest
  159.     (tackon
  160.     (askdir
  161.         (prompt "Select the location of the Extras Drawer.")
  162.         (help @askdir-help)
  163.             (default Megalosound_Dest)
  164.     )
  165.         "Extras"
  166.     )
  167. )
  168. )
  169.  
  170.  
  171. (if (= options 0)
  172. (Complete 30)
  173. )
  174.  
  175. ;set samples location
  176. (if (= options 0)
  177. (set Samples_Dest
  178.     (tackon
  179.         (askdir
  180.             (prompt "Select the location for the Samples Drawer.")
  181.             (help @askdir-help)
  182.                 (default Megalosound_Dest)
  183.         )
  184.         "Samples"
  185.     )
  186. )
  187. )
  188.  
  189. (if (= options 0)
  190. (Complete 40)
  191. )
  192.  
  193. ;copy megalosound files
  194. (if (= options 0)
  195.     (copyfiles
  196.         (Prompt "N/A")
  197.         (help " N/A")
  198.         (Source "MEGALOSOUND:")
  199.         (dest Megalosound_Dest)
  200.         (infos)
  201.         (files)
  202.         (pattern "Mega#?")
  203.     )
  204. )
  205.  
  206. (if (= options 0)
  207. (Complete 70)
  208. )
  209.  
  210. ;copy bonus files
  211. (if (= options 0)
  212.     (copyfiles
  213.         (Prompt "N/A")
  214.         (help "N/A"
  215.         " Supersound files to \"Bonus_Dest\".")
  216.         (source "MEGALOSOUND:Bonus")
  217.         (dest Bonus_Dest)
  218.         (infos)
  219.         (files)
  220.         (pattern "#?")
  221.     )
  222. )
  223.  
  224. ;Copy extras files
  225. (if (= options 0)
  226.     (copyfiles
  227.         (Prompt "N/A")
  228.         (help "N/A")
  229.         (source "MEGALOSOUND:Extras")
  230.         (dest Extras_Dest)
  231.         (infos)
  232.         (files)
  233.         (pattern "#?")
  234.     )
  235. )
  236.  
  237. (if (= options 0)
  238. (Complete 80)
  239. )
  240.  
  241. ;copy samples files
  242. (if (= options 0)
  243.     (copyfiles
  244.         (Prompt "N/A")
  245.         (help "N/A")
  246.         (source "MEGALOSOUND:Samples")
  247.         (dest Samples_Dest)
  248.         (infos)
  249.         (files)
  250.         (pattern "#?")
  251.     )
  252. )
  253.  
  254. (if (= options 0)
  255. (Complete 90)
  256. )
  257.  
  258. ;copy psam program to SYS:C
  259. (if (= options 0)
  260.     (copyfiles
  261.         (Prompt "N/A")
  262.         (help "N/A")
  263.         (source "MEGALOSOUND:Extras")
  264.         (dest "C:")
  265.         (files)
  266.         (infos)
  267.         (pattern "PS#?")
  268.     )
  269. )
  270.  
  271. (if (= options 0)
  272. (Complete 100)
  273. )
  274.  
  275. (if (= options 0)
  276. (user 2)
  277. )
  278.  
  279. (if (= options 0)
  280. (message techsupport1)
  281. )
  282.  
  283. (if (= options 0)
  284. (message techsupport2)
  285. )
  286.  
  287. (if(= options 0)
  288. (exit (quiet))
  289. )
  290.  
  291. ;if you choose the even more complex installation start here!
  292.  
  293. (if (= options 1)
  294.  
  295. ;decide if you want to install megalosound program files
  296.     (set parts
  297.         (askoptions
  298.             (Prompt "Selct parts to install")
  299.             (Choices "Megalosound        - (240K)"
  300.                 "Bonus files        - (190K)"
  301.                 "Multi-Mon Program  -   (5K)"
  302.                 "PSAM Program       -  (11K)"
  303.                 "Sample Files       -  (23K)"
  304.                 )
  305.             (help "\n Select which parts of the package you wish to"
  306.             " install by clicking on the selection boxes.")
  307.         )
  308.     )
  309. )
  310.  
  311. (if (= options 1)
  312. (Complete 0)
  313. )
  314.  
  315. ;if you did want to install the main program files do this bit
  316. ;about to setup main drawer location
  317. (if (IN parts 0)
  318.     (set Megalosound_Dest
  319.         (tackon
  320.             (askdir
  321.             (prompt "Select the location for the Megalosound files.")
  322.             (help "\n You must create a drawer for the Megalosound"
  323.             " program, if you don't create a drawer, the Megalosound"
  324.             " files will be copied to the root of your hard disk."
  325.             )
  326.             (default @default-dest)
  327.             )
  328.             ""
  329.         )
  330.     )
  331. )
  332.  
  333. (if (= options 1)
  334. (Complete 10)
  335. )
  336.  
  337. ;copy the actual megalosound files
  338. (if (IN parts 0)
  339.         (copyfiles
  340.             (Prompt "Copy Megalosound files to Specified Drawer.")
  341.             (help "\n  Select Proceed and Copy to copy the"
  342.             " Megalosound files to ""\"" Megalosound_Dest "\"""."
  343.             )
  344.             (Source "MEGALOSOUND:")
  345.             (dest Megalosound_Dest)
  346.             (infos)
  347.             (files)
  348.             (pattern "Mega#?")
  349.             (confirm)
  350.         )
  351. )
  352.  
  353. (if (= options 1)
  354. (Complete 20)
  355. )
  356.  
  357. ;set ssound location
  358. (if (IN parts 1)
  359.     (set SSound_Dest
  360.         (tackon
  361.             (askdir
  362.             (prompt "Select the location for the Supersound files.")
  363.             (help "\n Select where to place the Supersound files."
  364.             " If you do not create a drawer for the files, they"
  365.             " will be installed in the root of your hard disk."
  366.             )
  367.             (default @default-Dest)
  368.             )
  369.             ""
  370.         )
  371.     )
  372. )
  373.  
  374. (if (= options 1)
  375. (Complete 30)
  376. )
  377. ;copy ssound files to specified location
  378. (if (IN parts 1)
  379.         (copyfiles
  380.         (Prompt "Copy Supersound files to specified drawer.")
  381.         (help "\n Select Proceed and Copy to copy the Supersound files"
  382.         " to ""\"" SSound_Dest "\""".  "
  383.         )
  384.         (source "MEGALOSOUND:Bonus")
  385.         (dest SSound_Dest)
  386.         (infos)
  387.         (files)
  388.         (pattern "SS#?")
  389.         (confirm)
  390.     )
  391. )
  392.  
  393. (if (= options 1)
  394. (Complete 40)
  395. )
  396.  
  397. ;set extras location
  398. (if (IN parts 2)
  399.     (set MultiMon_Dest
  400.         (tackon
  401.             (askdir
  402.             (prompt "Select the location for the Multi-Mon files.")
  403.             (help "\n Select where to place the Multi-Mon files"
  404.             " If you do not create a drawer for the files they will"
  405.             " be installed in the root of your hard disk."
  406.             )
  407.             (default @default-Dest)
  408.             )
  409.              ""
  410.         )
  411.     )
  412. )
  413.  
  414. (if (= options 1)
  415. (Complete 50)
  416. )
  417.  
  418. ;copy multi-mon to specified drawer
  419. (if (IN parts 2)
  420.         (copyfiles
  421.             (Prompt "Copy Extra files to specified drawer")
  422.             (help "\n Select Proceed and Copy to copy the Multi-Mon"
  423.             " files to ""\"" MultiMon_Dest "\"""."
  424.             )
  425.             (source "MEGALOSOUND:Extras")
  426.             (dest MultiMon_Dest)
  427.             (files)
  428.             (infos)
  429.             (pattern "Mult#?")
  430.             (confirm)
  431.         )
  432. )
  433.  
  434. (if (= options 1)
  435. (Complete 60)
  436. )
  437.  
  438. ;Specify PSAM path
  439.  
  440. (if (IN parts 3)
  441. ;set samples drawer location
  442.     (set PSAM_Dest
  443.         (tackon
  444.             (askdir
  445.             (prompt "Select the location for the PSAM program.")
  446.             (help "\n Select where to place the PSAM file.\n\n"
  447.             "   This file is needed to play samples from the hard disk"
  448.             " in Workbench. I would suggest that it is placed in a Workbench"
  449.             " path such as C or TOOLS, this will ensure that"
  450.             " the file will be found when working within Workbench."
  451.             )
  452.             (default "C:")
  453.             )
  454.             ""
  455.         )
  456.     )
  457. )
  458.  
  459. (if (= options 1)
  460. (Complete 70)
  461. )
  462.  
  463. ;copy PSAM
  464.  
  465. (if (IN parts 3)
  466.         (copyfiles
  467.             (Prompt "Copy PSAM program - See Help for more details.")
  468.             (help "\n Select Proceed and Copy to copy the PSAM program"
  469.             " to ""\"" PSAM_Dest "\""". "
  470.             )
  471.             (source "MEGALOSOUND:Extras")
  472.             (dest PSAM_Dest)
  473.             (files)
  474.             (infos)
  475.             (pattern "PSAM")
  476.             (confirm)
  477.         )
  478. )
  479.  
  480. (if (= options 1)
  481. (Complete 80)
  482. )
  483.  
  484. ;I HATE BRACKETS!!!!!!!!!!!!
  485. ;setup sample file location location
  486.  
  487. (if (IN parts 4)
  488. ;set samples location
  489.     (set Samples_Dest
  490.         (tackon
  491.             (askdir
  492.             (prompt "Select the location for the Samples files.")
  493.             (help "\n Select where to place the Sample files."
  494.             " If you do not create a drawer for the files they"
  495.             " will be installed in the root of your hard disk."
  496.             )
  497.             (default @default-Dest)
  498.             )
  499.             ""
  500.         )
  501.     )
  502. )
  503.  
  504. (if (= options 1)
  505. (Complete 90)
  506. )
  507.  
  508. ;copy sample files to specified location
  509. (if (IN parts 4)
  510.     (copyfiles
  511.         (Prompt "Copy Sample files to specified drawer.")
  512.         (help "\n Select Proceed and Copy to copy the Sample files"
  513.         " to ""\"" Samples_Dest "\"""."
  514.         )
  515.         (source "MEGALOSOUND:Samples")
  516.         (dest Samples_Dest)
  517.         (infos)
  518.         (files)
  519.         (pattern "#?")
  520.         (confirm)
  521.     )
  522. )
  523.  
  524. (if (= options 1)
  525. (Complete 100)
  526. )
  527.  
  528. (if (= options 1)
  529. (message techsupport3)
  530. )
  531.  
  532. (if (= options 1)
  533. (message techsupport2)
  534. )
  535.  
  536. (if(= options 1)
  537. (exit (quiet))
  538. )
  539.